#include <iostream>  
using namespace std;

int main(){
	int n=0,k=0;
	long final;
	cout<<"请输入底数n:";
	cin>>n;
	cout<<"请输入指数k:";
	cin>>k;
	final=n;
	if(k==0){
	cout<<"n^k的结果是:"<<1;	
	}
	else{
		for(int i=1;i<k;i++){
			final=final*n;
		}
		cout<<n<<"^"<<k<<"的结果是:"<<final;
	}
	return 0;
}
